Skip to content

Conversation

@FredericMa
Copy link
Contributor

@FredericMa FredericMa commented Sep 30, 2025

I noticed that since upgrading to 4.5.X, AppDaemon generates way more traffic between itself and Home Assistant. It generates a continues stream of about 1 Mbps. It turns out that it keeps on getting full state updates every second once the initial refresh_delay has expired.

The issue is that the last_plugin_state dictionary is incorrectly updated with the entire plugin instead of just the plugin name. Because of this, the HASS plugin timestamp is never updated, causing it to remain expired and triggering a full state update every second. Providing the plugin name when refreshing the update time fixes the issue.

I'm wondering why this hasn't come to the surface before because it looks like a critical issue to me.

Traffic generated before the fix (before 20:46:00):
image

Traffic generated after the fix (after 21:19:00, the single spike is because of a package update that's not related to AppDaemon):
image

@jsl12
Copy link
Contributor

jsl12 commented Sep 30, 2025

Very good catch on this one! I think most people use it on the same machine, even the same VM, as their Home Assistant instance, so you'd have to really be paying attention to catch the increased traffic.

@FredericMa
Copy link
Contributor Author

True, that makes sense.

@acockburn acockburn merged commit 86be664 into AppDaemon:dev Oct 4, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants